From: Giovanni Campagna Date: Sun, 16 Dec 2012 19:02:17 +0000 (+0100) Subject: WindowManager: clean up scale_y when overwrite the map animation X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5226 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=15063ef3d53bdd740f5e5c77d6fb4dadd737fa70;p=gnome-shell.git WindowManager: clean up scale_y when overwrite the map animation If we overwrite a map animation (for example because the actor is now destroyed), we need to complete it first, otherwise it starts off from a random middle point. This is the same treatment opacity gets for normal windows. https://bugzilla.gnome.org/show_bug.cgi?id=690241 --- diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index f5966282c..372d9a303 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -420,6 +420,7 @@ const WindowManager = new Lang.Class({ if (this._removeEffect(this._mapping, actor)) { Tweener.removeTweens(actor); actor.opacity = 255; + actor.scale_y = 1; shellwm.completed_map(actor); } },